//
//  CommonControlView.m
//  MyItem
//
//  Created by admin on 15/12/25.
//  Copyright © 2015年 admin. All rights reserved.
//

#import "CommonControlView.h"

@implementation CommonControlView

//- (void)_createPicAndLab:(NSString *)ImageName :(NSString *)text{
//        //1、创建子视图
//        UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake((frame.size.width - 20) / 2, 5, 20, 20)];
//        imageView.image = [UIImage imageNamed:name];
//        //设置图片适应
//        imageView.contentMode = UIViewContentModeScaleAspectFit;
//        
//        [self addSubview:imageView];
//        
//        //2、创建标题视图
//        CGFloat maxY = CGRectGetMaxY(imageView.frame);
//        UILabel *titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, maxY, frame.size.width, 20)];
//        //设置label内容
//        titleLabel.text = title;
//        titleLabel.textColor = [UIColor whiteColor];
//        titleLabel.textAlignment = NSTextAlignmentCenter;
//        titleLabel.font = [UIFont systemFontOfSize:11];
//        [self addSubview:titleLabel];
//}
//
@end
